package reliability.types.logical_function;

import reliability.types.NetworkConditionMap;

public class ParenExpression
    extends LogicalFunctionElement
{
    private LogicalFunctionElement operand;

    public ParenExpression(LogicalFunctionElement operand)
    {
        this.operand = operand;
    }

    public boolean evaluate(NetworkConditionMap networkState)
    {
        return operand.evaluate(networkState);
    }

    public String toString()
    {
        return "(" + operand.toString() + ")";
    }
}
